import request from '@/utils/request2'
import qs from 'qs'
// 获取流程列表
export function queryList(data, page, size) {
  return request({
    url: `/act/showAm?page=${page}&limit=${size}&name=${data.name}&key=315`,
    method: 'GET'
  })
}
// 删除
export function del(data) {
  return request({
    url: `/act/delModel`,
    method: 'POST',
    data: qs.stringify({ id: data }),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
// 发布
export function open(data) {
  return request({
    url: `/act/open`,
    method: 'POST',
    data: qs.stringify({ id: data }),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
